package com.snowwolf.user.entity.mongodb;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.List;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/3/16 9:14
 * @modified by:
 * @versions：0.1.0
 */
@Document(collection="news")
@Data
public class NewsMdbEo {
    @Id
    private String id;
    private String content;
    private String author;
    private String title;
    private Integer type;
    private List<String> tags;
    private String domain;
    @CreatedDate
    private Date createTime;
    @LastModifiedDate
    private Date updateTime;
    private List<String> actors;
    private Long vp;
    private Long likeNum;
}
